Release 10.1A: OpenEdge Development:
ADM and SmartObjects
Design rules
This section summarizes the design rules for constructing a new SmartObject that inherits from the new class that you created. These rules are fairly simple; follow them to assure the right application structure. The design rules are:
- Each SmartObject type (template) includes a primary include file that, by convention, has the same name as the template but with a .i extension. For example,
viewer.wincludes%DLC%\src\adm2\viewer.i(Windows) or$DLC/src/adm2/viewer.i(UNIX).- Each primary include file such as
viewer.iincludes its parent’s support include file, plus its own property include file. For example,viewer.iincludesdatavis.i, because a SmartDataViewer is a visual object that displays data, and alsoviewprop.i, where the properties specific to SmartDataViewers are defined. It also starts the associated super procedure.- Each super procedure file includes its own property include file. These nest in such a way as to define all object properties in the proper order.
In addition, the presence of super procedures means it is possible to run many internal procedures and user-defined functions in SmartObjects that are not in those objects, but only in their super procedures.
- Each prototype file should include a prototype definition for each internal procedure and function implemented in a SmartObject’s super procedures. The contents of the prototype file are implementation dependent, so initially it is empty. Use the AppBuilder’s Pro*Tool ProtoGen to generate the prototype file based on your super procedure. For more information on the ProtoGen utility, see the online help.
Follow these rules when building a new SmartObject type, to ensure all the relationships are established.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |